package cn.com.gof.structure.flyweight;

/**
 * <p>Title: ChessFlyWeight</p>  
 * <p>Description: </p>  
 * @author WangJun
 * @date 2018年9月7日 下午2:20:07
 */
public interface ChessFlyWeight {
	String getColor();
	void display(Coordinate c);
}

class ConcreateChess implements ChessFlyWeight{
	private String Color;

	
	public ConcreateChess(String color) {
		super();
		Color = color;
	}

	@Override
	public String getColor() {
		return Color;
	}

	@Override
	public void display(Coordinate c) {
		System.out.println("棋子颜色-----》"+Color);
		System.out.println("棋子位置-----》"+c.getX()+"-"+c.getY());
	}
}
